<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<center>
		<table border="0" width="500" height="300" cellpadding="0" cellspacing="0">
			<tr height="10%">
				<th align="left" width="33%">
					<img src="/ssteam/image/user/top_logo.png">
				</th>
				<th valign="bottom" align="center" width="33%">
					<font color="#6666FF" size="5">직원 로그인</font>
				</th>
				<th valign="bottom" align="right" width="33%">
					<img src="/ssteam/image/user/top_browsers.png">
				</th>
			</tr>			
			<tr height="5%">
				<td valign="top" colspan="3">
					<hr color="#6666FF">
				</td>
			</tr>
			<tr height="80%">
				<td colspan="3" align="center">					
					<form action="/ssteam/user/login_ok.team" method="post" name="frm">
					<table border="0" width="70%">						
						<tr>
							<td width="25%">사원번호</td>
							<td width="40%">
								<input type="text" name="sabun" size="15" maxlength="7">
							</td>
							<td width="35%" rowspan="2">
								<a href="javascript:document.frm.submit()">
									<img src="/ssteam/image/user/button_login.png" border="0">
								</a>
								<br>
															
							</td>
							
						</tr>
						<tr>
							<td>비밀번호</td>
							<td>
								<input type="password" name="pwd" size="16" maxlength="10">
							</td>						
						</tr>						
					</table>
					</form>
				</td>
			</tr>
			<tr height="10%">
				<%--로그인 실패시 액션에서 넘어온 결과값에 따라 오류 메시지 출력 --%>
				<td valign="top" colspan="3">
					<s:if test="result == 'nosabun'">
						<font color="blue">존재하지 않는 사번입니다. 다시한번 확인하세요</font>						
					</s:if>
					<s:elseif test="result == 'nopwd'">
						<font color="blue">비밀번호가 틀립니다. 다시한번 확인하세요</font>						
					</s:elseif>					
					<s:else>
						&nbsp;
					</s:else>
					<hr color="#6666FF">										
				</td>				
			</tr>
			<tr>
				<td colspan="3">
				<p><p>
				Copyright © 2조 All rights reserved.
				</td>
			</tr>
		</table>
	</center>	
</body>
</html>